/**
 * Created by wd14931 on 2017/5/25.
 */
const util = require('util');
var red = '\x1B[31m%s\x1B[39m',
    yellow  = '\x1B[33m%s\x1b[0m:',
    likeBlue = '\x1B[36m%s\x1B[0m';

/*function Console(){}

Console.prototype.log = function(){
    console.log.apply(null, util.format.apply(this, arguments) + '\n')
}

Console.prototype.info = Console.prototype.log;

Console.prototype.warn = function(){
    console.error.call(null, util.format.apply(this, [red].concat(arguments)) + '\n')
}

Console.prototype.err = Console.prototype.warn;

module.exports = new Console();*/

exports.err  = red;
exports.warn  = yellow;
exports.info = likeBlue;

